Optimal. Leaf size=132 \[ d \log (x) \left (a+b \cos ^{-1}(c x)\right )+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {b e \sin ^{-1}(c x)}{4 c^2}+\frac {1}{2} i b d \text {Li}_2\left (e^{2 i \sin ^{-1}(c x)}\right )+\frac {1}{2} i b d \sin ^{-1}(c x)^2-b d \sin ^{-1}(c x) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )+b d \log (x) \sin ^{-1}(c x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 132, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 12, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.632, Rules used = {14, 4732, 12, 6742, 321, 216, 2326, 4625, 3717, 2190, 2279, 2391} \[ \frac {1}{2} i b d \text {PolyLog}\left (2,e^{2 i \sin ^{-1}(c x)}\right )+d \log (x) \left (a+b \cos ^{-1}(c x)\right )+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {b e \sin ^{-1}(c x)}{4 c^2}+\frac {1}{2} i b d \sin ^{-1}(c x)^2-b d \sin ^{-1}(c x) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )+b d \log (x) \sin ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 216
Rule 321
Rule 2190
Rule 2279
Rule 2326
Rule 2391
Rule 3717
Rule 4625
Rule 4732
Rule 6742
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right ) \left (a+b \cos ^{-1}(c x)\right )}{x} \, dx &=\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+(b c) \int \frac {e x^2+2 d \log (x)}{2 \sqrt {1-c^2 x^2}} \, dx\\ &=\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+\frac {1}{2} (b c) \int \frac {e x^2+2 d \log (x)}{\sqrt {1-c^2 x^2}} \, dx\\ &=\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+\frac {1}{2} (b c) \int \left (\frac {e x^2}{\sqrt {1-c^2 x^2}}+\frac {2 d \log (x)}{\sqrt {1-c^2 x^2}}\right ) \, dx\\ &=\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+(b c d) \int \frac {\log (x)}{\sqrt {1-c^2 x^2}} \, dx+\frac {1}{2} (b c e) \int \frac {x^2}{\sqrt {1-c^2 x^2}} \, dx\\ &=-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+b d \sin ^{-1}(c x) \log (x)-(b d) \int \frac {\sin ^{-1}(c x)}{x} \, dx+\frac {(b e) \int \frac {1}{\sqrt {1-c^2 x^2}} \, dx}{4 c}\\ &=-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+\frac {b e \sin ^{-1}(c x)}{4 c^2}+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+b d \sin ^{-1}(c x) \log (x)-(b d) \operatorname {Subst}\left (\int x \cot (x) \, dx,x,\sin ^{-1}(c x)\right )\\ &=-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+\frac {b e \sin ^{-1}(c x)}{4 c^2}+\frac {1}{2} i b d \sin ^{-1}(c x)^2+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+b d \sin ^{-1}(c x) \log (x)+(2 i b d) \operatorname {Subst}\left (\int \frac {e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\sin ^{-1}(c x)\right )\\ &=-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+\frac {b e \sin ^{-1}(c x)}{4 c^2}+\frac {1}{2} i b d \sin ^{-1}(c x)^2-b d \sin ^{-1}(c x) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+b d \sin ^{-1}(c x) \log (x)+(b d) \operatorname {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )\\ &=-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+\frac {b e \sin ^{-1}(c x)}{4 c^2}+\frac {1}{2} i b d \sin ^{-1}(c x)^2-b d \sin ^{-1}(c x) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+b d \sin ^{-1}(c x) \log (x)-\frac {1}{2} (i b d) \operatorname {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \sin ^{-1}(c x)}\right )\\ &=-\frac {b e x \sqrt {1-c^2 x^2}}{4 c}+\frac {1}{2} e x^2 \left (a+b \cos ^{-1}(c x)\right )+\frac {b e \sin ^{-1}(c x)}{4 c^2}+\frac {1}{2} i b d \sin ^{-1}(c x)^2-b d \sin ^{-1}(c x) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )+d \left (a+b \cos ^{-1}(c x)\right ) \log (x)+b d \sin ^{-1}(c x) \log (x)+\frac {1}{2} i b d \text {Li}_2\left (e^{2 i \sin ^{-1}(c x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.21, size = 111, normalized size = 0.84 \[ \frac {1}{4} \left (4 a d \log (x)+2 a e x^2-\frac {b e x \sqrt {1-c^2 x^2}}{c}+\frac {b e \sin ^{-1}(c x)}{c^2}+2 b \cos ^{-1}(c x) \left (e x^2+2 d \log \left (1+e^{2 i \cos ^{-1}(c x)}\right )\right )-2 i b d \text {Li}_2\left (-e^{2 i \cos ^{-1}(c x)}\right )-2 i b d \cos ^{-1}(c x)^2\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.44, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {a e x^{2} + a d + {\left (b e x^{2} + b d\right )} \arccos \left (c x\right )}{x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (e x^{2} + d\right )} {\left (b \arccos \left (c x\right ) + a\right )}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.39, size = 130, normalized size = 0.98 \[ \frac {a \,x^{2} e}{2}+d a \ln \left (c x \right )-\frac {i b d \arccos \left (c x \right )^{2}}{2}-\frac {b e x \sqrt {-c^{2} x^{2}+1}}{4 c}+\frac {b \arccos \left (c x \right ) x^{2} e}{2}-\frac {b \arccos \left (c x \right ) e}{4 c^{2}}+b d \arccos \left (c x \right ) \ln \left (1+\left (c x +i \sqrt {-c^{2} x^{2}+1}\right )^{2}\right )-\frac {i b d \polylog \left (2, -\left (c x +i \sqrt {-c^{2} x^{2}+1}\right )^{2}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, a e x^{2} + a d \log \relax (x) + \int \frac {{\left (b e x^{2} + b d\right )} \arctan \left (\sqrt {c x + 1} \sqrt {-c x + 1}, c x\right )}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (a+b\,\mathrm {acos}\left (c\,x\right )\right )\,\left (e\,x^2+d\right )}{x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \operatorname {acos}{\left (c x \right )}\right ) \left (d + e x^{2}\right )}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________